package test.arch.chameleon.busi.sample;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

import test.module.AbstractAjaxIntegratedTestSupport;

/**
 * Sample Controller测试
 * @author George
 *
 */
public class SampleControllerTestcase extends AbstractAjaxIntegratedTestSupport {
	
	/**
	 * 数据查询
	 */
	@Test
	public void read(){
		//登录
		login();
		
		Map<String, Object> mpParams = new HashMap<String, Object>();
	
		//读取数据
		Map<String, Object> mpResult = doPostRequest(
				buildURL("sample/sampleRead.json"), "read", mpParams);		
		log.info("Map Result: {}", new Object[]{mpResult});
	} 
}